﻿<Window x:Class="MockupDesigner.Dialogs.AddControlToToolboxWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add To Custom Toolbox" Height="400" Width="400"
        WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
    <StackPanel>
        <StackPanel Orientation="Horizontal" Margin="0,10,0,0" >
            <TextBlock VerticalAlignment="Center" Margin="10,0,0,0">ToolTip for this control (optional):</TextBlock>
            <TextBox VerticalAlignment="Center" Name="ToolTipTB" Width="170" Margin="10,0,0,0"/>
        </StackPanel>
        <GroupBox Header="Custom ToolBoxes" Margin="10">
            <StackPanel>
                <StackPanel Orientation="Horizontal" Margin="0,10,0,0" >
                    <TextBlock VerticalAlignment="Center" Margin="5,0,0,0">New Custom Toolbox:</TextBlock>
                    <TextBox VerticalAlignment="Center" Name="NewToolBoxTB" Width="140" Margin="10,0,0,0"/>
                    <Button Margin="10,0,0,0" VerticalAlignment="Center" Width="60" Click="CreateBT_Click">Create</Button>
                </StackPanel>
                <ListBox Name="ToolboxLB" Height="200" Margin="5,10,5,0" SelectionMode="Multiple">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock  Text="{Binding ToolboxName}" />
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </GroupBox>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Add To Selected Toolboxes"  Width="160" Margin="0,0,10,0" Click="OkBT_Click" />
            <Button Content="Cancel" IsDefault="True" IsCancel="True" Width="60" Margin="0,0,10,0"/>
            <!--Click="Cancel_Click" />-->
        </StackPanel>
    </StackPanel>
</Window>
